package com.cskaoyan.bean.yangzihui;

import lombok.Data;

import java.util.List;

/**
 * @author yangzihui
 * @Description
 * @Create 2022-06-30 10:58
 * @Version
 */
@Data
public class CouponMyListPo {
    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<CouponMyList> list;

    public static CouponMyListPo data(long total, Integer pages, Integer limit, Integer page, List list){
        CouponMyListPo couponMyListPo = new CouponMyListPo();
        couponMyListPo.setTotal((int) total);
        couponMyListPo.setPages(pages);
        couponMyListPo.setPage(page);
        couponMyListPo.setLimit(limit);
        couponMyListPo.setList(list);
        return couponMyListPo;
    }
}
